package com.aliyun.demo;

import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.live.model.v20161101.*;
import com.aliyuncs.profile.DefaultProfile;
import com.aliyuncs.profile.IClientProfile;
import org.junit.Test;

public class LiveSnapshot {
    private static String regionId = System.getenv("regionId");
    private static String accessKeyId = System.getenv("accessKeyId");
    private static String secret = System.getenv("secret");
    private static String domainName = "play-live-one-sz.alivecdn.com";
    private static DefaultAcsClient client;
    static {
        IClientProfile profile = DefaultProfile.getProfile(regionId, accessKeyId, secret);
        client = new DefaultAcsClient(profile);
    }

    @Test
    public void shouldCheckAddLiveAppSnapshotConfig(){
        AddLiveAppSnapshotConfigRequest request = new AddLiveAppSnapshotConfigRequest();
        request.setBizSecurityToken(secret);
        request.setOwnerId(0L);
//        request.setActionName();
    }

    @Test
    public void shouldCheckDeleteLiveAppSnapshotConfig(){
        DeleteLiveAppSnapshotConfigRequest request = new DeleteLiveAppSnapshotConfigRequest();
        request.setBizSecurityToken(secret);
        request.setOwnerId(0L);
//        request.setActionName();
    }

    @Test
    public void shouldCheckDescribeLiveSnapshotConfig(){
        DescribeLiveSnapshotConfigRequest request = new DescribeLiveSnapshotConfigRequest();
        request.setBizSecurityToken(secret);
        request.setOwnerId(0L);
//        request.setActionName();
    }

    @Test
    public void shouldCheckUpdateLiveAppSnapshotConfig(){
        UpdateLiveAppSnapshotConfigRequest request = new UpdateLiveAppSnapshotConfigRequest();
        request.setBizSecurityToken(secret);
        request.setOwnerId(0L);
//        request.setActionName();
    }

    @Test
    public void shouldCheckDescribeLiveStreamSnapshotInfo(){
        DescribeLiveStreamSnapshotInfoRequest request = new DescribeLiveStreamSnapshotInfoRequest();
        request.setBizSecurityToken(secret);
        request.setOwnerId(0L);
//        request.setActionName();
    }
}
